package com.tt.fashionWebSite.dto;

import java.io.Serializable;

/**
 * Created by isoft-work 5 on 1/17/2015.
 */
public class RevenueDateAndSellMonthReportDto implements Serializable {
   private String maSP;
   private String tenSP;
   private String soLuong;
   private String giaBan;
   private Double tien;

   public RevenueDateAndSellMonthReportDto(Object[] info) {
      if(info[0] != null) {
         this.maSP = info[0].toString();
      }

      if(info[1] != null) {
         this.tenSP = info[1].toString();
      }

      if(info[2] != null) {
         this.soLuong = info[2].toString();
      }

      if(info[3] != null) {
         this.giaBan = info[3].toString();
      }

      if(info[4] != null) {
         this.tien = (Double)info[4];
      }
   }

   public String getMaSP() {
      return maSP;
   }

   public void setMaSP(String maSP) {
      this.maSP = maSP;
   }

   public String getTenSP() {
      return tenSP;
   }

   public void setTenSP(String tenSP) {
      this.tenSP = tenSP;
   }

   public String getSoLuong() {
      return soLuong;
   }

   public void setSoLuong(String soLuong) {
      this.soLuong = soLuong;
   }

   public String getGiaBan() {
      return giaBan;
   }

   public void setGiaBan(String giaBan) {
      this.giaBan = giaBan;
   }

   public Double getTien() {
      return tien;
   }

   public void setTien(Double tien) {
      this.tien = tien;
   }
}
